package com.itcast.Comparable.Demo01;

/*
要写注释哦!!!
*/
public class Student {
    private String namg;
    private int age;
    private int hight;
    private int weigth;
    private int score;

   /* @Override
    public int compareTo(Student o) {
        return this.age-o.age;
    }*/
    public Student() {
    }

    public Student(String namg, int age, int hight, int weigth, int score) {
        this.namg = namg;
        this.age = age;
        this.hight = hight;
        this.weigth = weigth;
        this.score = score;
    }

    public String getNamg() {
        return namg;
    }

    public void setNamg(String namg) {
        this.namg = namg;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getHight() {
        return hight;
    }

    public void setHight(int hight) {
        this.hight = hight;
    }

    public int getWeigth() {
        return weigth;
    }

    public void setWeigth(int weigth) {
        this.weigth = weigth;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "namg='" + namg + '\'' +
                ", age=" + age +
                ", hight=" + hight +
                ", weigth=" + weigth +
                ", score=" + score +
                '}';
    }
}
